#include "affair.h"

int UsrInfoInit(UsrInfo_t *pUsrInfo,char *user_name)
{
    pathStackInit(&pUsrInfo->pathStack);
    snprintf(pUsrInfo->usr_name, sizeof(pUsrInfo->usr_name), "%s", user_name);
    snprintf(pUsrInfo->current_path, sizeof(pUsrInfo->current_path), "/");
    return 0;
}
